package com.bdqn.membersystem.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.bdqn.membersystem.pojo.Information;
import java.util.List;
import com.bdqn.membersystem.mapper.InformationMapper;
import com.bdqn.membersystem.service.InformationService;
/**
* 作者：姚岳城
* 日期：2020/4/3 16:53
*/

@Service
public class InformationServiceImpl implements InformationService{

    @Resource
    private InformationMapper informationMapper;


    /**
     * 获取资讯列表
     *
     * @param loginCode
     * @return
     */
    @Override
    public List<Information> getPortalInfoByLoginCode(String loginCode) {
        List<Information> informationList = informationMapper.selectInformationListMyLoginCode(loginCode);

        return informationList;
    }

    @Override
    public List<Information> getList(Information information) throws Exception {
        return informationMapper.getList(information);
    }

    @Override
    public List<Information> getInformationList(Information information) throws Exception {
        return informationMapper.getInformationList(information);
    }

    @Override
    public Information getInformation(Information information) throws Exception {
        return informationMapper.getInformation(information);
    }

    @Override
    public int addInformation(Information information) throws Exception {
        return informationMapper.addInformation(information);
    }

    @Override
    public int modifyInformation(Information information) throws Exception {
        return informationMapper.modifyInformation(information);
    }

    @Override
    public int modifyInformationFileInfo(Information information) throws Exception {
        return informationMapper.modifyInformationFileInfo(information);
    }

    @Override
    public int deleteInformation(Information information) throws Exception {
        return informationMapper.deleteInformation(information);
    }

    @Override
    public int count(Information information) throws Exception {
        return informationMapper.count(information);
    }


}
